/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package flange.functions;

/**
 *
 * @author Сергей
 */
public class WordsNumberFunction extends Function2D{
    public double xmax, x0,d = 1;
    public Function2D k, wbdf;

    public void setK(Function2D f) {
        this.k = f;
    }

    public WordsNumberFunction(Point2D a, Point2D b) {
        super(a,b);
        xmax = 3000;
        x0 = 0;
    }

    @Override
    public double getY(double t) {
        return Math.sqrt((t+d)*2*k.getY(t));
    }

}
